<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../vue.js"></script>
</head>
<style>
  .public {
    width: 200px;
    height: 200px;
    background-color: darkolivegreen;
  }

  .red {
    color: red;
    font-size: 20px;
  }

  .bold {
    font-weight: bold;
  }

  .blue {
    color: blue;
    font-size: 16px;
  }
  .green{
    color: greenyellow;
  }
</style>

<body>
  <div id="app">
    <h1>{{msg}}</h1>
    <p class="public" :class="classobjStyle">00点25分</p>
    <p class="public" :class="{blue:isBlue}">00点29分</p>
    <p :class="styleArr">00点31分</p>
  </div>
  <script>
    Vue.config.productionTip = false;
    const vm = new Vue({
      el: "#app",
      data() {
        return {
          msg: "hello vue!",
          classobjStyle: {
            red: true,
            bold: true
          },
          isBlue: true,
          styleArr:['green']
        }
      },
      methods: {}
    })
  </script>
</body>

</html>